package com.xiaodou.mjf.application.fee.service.impl;

import com.xiaodou.mjf.application.fee.repository.ServeRepository;
import com.xiaodou.mjf.application.fee.service.ServeService;
import com.xiaodou.mjf.entity.fee.Serve;
import com.xiaodou.mjf.infrastructure.common.app.JpaSimpleService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.transaction.Transactional;


/***
 *
 * Serve业务访问实现
 * @author XiaoDou.com Code Generator
 * @version 1.0
 * 2014-10-29 17:37:52
 *
 */
@Service @Transactional
public class ServeServiceImpl extends JpaSimpleService<Serve,String> implements ServeService{

	Logger logger = LoggerFactory.getLogger(ServeServiceImpl.class);

    @Resource
    ServeRepository serveRepository;

    @Override
    protected JpaRepository<Serve, String> getRepository() {
        return serveRepository;
    }


    @Override
    public Serve findByCode(String serviceCode) {
        return serveRepository.findByCode(serviceCode);
    }
}

